package com.cloudlead.common.lang.api;

import java.util.Map;

/**
 * Created by dean on 2015/8/2.
 */
public class RequestHeaderContext {

    private static final ThreadLocal<Map<String, String>> headerContext = new ThreadLocal<>();

    public static void setRequestHeaders(Map<String, String> requestHeaders) {
        headerContext.set(requestHeaders);
    }

    public static Map<String, String> getRequestHeaders() {
        return headerContext.get();
    }
}
